package Ejercicios;

/**
 *  Covierte una Cadena-->Int-->Double-->Byte-->Float-->Integer-->Shor-->Long-->Boolean
 */

public class Conversiones {
   public static void main(String[] args) {
        String g = "555";
        int a= Integer.parseInt(g);
          System.out.println("int "+a);
        Double b = new Double(a);
          System.out.println("double "+b);
        Byte c =new Byte(b.byteValue());
          System.out.println("byte " +c);
        Float h = new Float(c.floatValue());
          System.out.println("float "+h);
        Integer i= new Integer(h.intValue());
          System.out.println("int "+i);
        Short t = new Short(i.shortValue());
          System.out.println("short "+t);
        Long l = new Long(t.longValue());
          System.out.println("long "+l);
        boolean y= Boolean.parseBoolean(l.toString());
          System.out.println("boolean "+y);
   }
}